<?php
/**
 * OpenSourceBB Do some changes in the files
 * Upload Test1
 */
session_start();
define('OSBB',"temp_100");

//Config File
@require_once("config.php");

//Class's
@require_once($cfg['path']."core/class_osbb.php");
@require_once($cfg['path']."core/class_db.php");
@require_once($cfg['path']."core/class_template.php");
@require_once($cfg['path']."core/constants.php");


//Template
@include_once($cfg['path']."Theme/".$cfg['theme']."/settings.php");
$template = new Template();
$template->set_file_alias("overall", $cfg['path']."Theme/".$cfg['theme']."/".$theme_cfg['overall']);
$template->assign_vars(array(
	"TITLE"=>"OpenSourceBB (Beta)",
	"THEME_DIR"=>"Theme/Default/"));
		
//Language
@require_once($cfg['path']."Language/".$cfg['language'].".php");
foreach($lang as $tag => $replace) {
	$template->assign_vars(array("L_".$tag=>$replace));
}

//Database
$db = new db($cfg["DB_host"], $cfg["DB_User"], $cfg["DB_Pass"], $cfg["DB_Name"]);

//Page Switch
switch($_GET['act']) {
	default:
		require_once($cfg['source']."idx.php");
	break;
}
echo $template->parse("overall");
?>